
// 注册自定义指令并是图片显示出来

export const imger = {
  // 当被绑定的元素插入到 DOM 中时……
  inserted: function(el, bingding) {
    el.onerror = function() {
      el.src = bingding.value
    }
  }
}
export const color = {
  inserted: function(el, bingding) {
    el.style.color = bingding.value
  }
}

